﻿
namespace BingSpatialDataServiceExcelAddin
{
    //Installer information: http://msdn.microsoft.com/en-us/library/ff937654.aspx

    public partial class ThisAddIn
    {
        public Microsoft.Office.Tools.CustomTaskPane DataSourceManager;

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            Views.DataSourceManager dsManager = new Views.DataSourceManager();
            DataSourceManager = this.CustomTaskPanes.Add(dsManager, "Bing Spatial Data Source Manager");
            DataSourceManager.DockPosition = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionRight;
            DataSourceManager.Width = 350;
            DataSourceManager.Visible = false;
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
        
        #endregion
    }
}
